﻿using AttributeRouting.Web.Http;
//using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Water.Model;


namespace Water.RestService.Controllers
{
    public class ExplosionAccidentDetailController : ApiController
    {
        private ExplosionAccidentDetail ead;

        [GET("GetExplosionAccidentDetail/{mrno}")]
        public ExplosionAccidentDetail GetExplosionAccidentDetail(string mrno)
        {
            ead = new ExplosionAccidentDetail();
            return ead.GetExplosionAccidentDetail(mrno);
        }


        [POST("EditExplosionAccidentDetail")]
        public bool EditExplosionAccidentDetail(ExplosionAccidentDetail pead)
        {
            ead = new ExplosionAccidentDetail();
            return ead.UpdateExplosionAccidentDetail(pead) > 0 ? true : false;
        }
    }
}
